<php>$_temps = explode("\r\n",$_field['config']['values']);</php>


<eq name='_field.config.editable' value='1'>
	<div class="row">
		<div class="col-md-8">
			<input type="text" class="form-control" id="{$_ns}_obj" name="{$_field._field}" value="{$_field._value}" placeholder="{$_field.config.prompt|default=''}" <eq name='_field.config.readonly' value='1'>readonly</eq> <eq name='_field.config.disabled' value='1'>disabled</eq> <eq name='_field.config.required' value='1'>required</eq>>
		</div>
		<div class="col-md-4">
			<select class="form-control" id="{$_ns}" onchange="$('#{$_ns}_obj').val($(this).val());" <eq name='_field.config.readonly' value='1'>readonly</eq> <eq name='_field.config.disabled' value='1'>disabled</eq> <eq name='_field.config.required' value='1'>required</eq>>
				<foreach name='_temps' item='_temp'>
				<php>$_temp = explode("|",$_temp);</php>
				<option value="{$_temp[1]}" <eq name="_field._value" value='$_temp[1]'>selected</eq>>{$_temp[0]}</option>
				</foreach>
			</select>
		</div>
	</div>
<else/>
	<select class="form-control" id="{$_ns}" name="{$_field._field}" <eq name='_field.config.readonly' value='1'>readonly</eq> <eq name='_field.config.disabled' value='1'>disabled</eq> <eq name='_field.config.required' value='1'>required</eq>>
		<foreach name='_temps' item='_temp'>
		<php>$_temp = explode("|",$_temp);</php>
		<option value="{$_temp[1]}" <eq name="_field._value" value='$_temp[1]'>selected</eq>>{$_temp[0]}</option>
		</foreach>
	</select>
</eq>